import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Button,NavBar,Icon,Tabbar, TabbarItem } from 'vant'
createApp(App).use(store).use(router).use(Tabbar).use(TabbarItem)
.use(Button).use(NavBar).use(Icon)
.mount('#app')
router.beforeEach((to,from,next)=>{
    document.title = to.meta.title
    store.commit('setPageTitle',to.meta.title)
    next()
})
